package chapter8;

public class Chapter8Main {

    public static void main(String[] args) {
        Chapter8Main chapter8Main=new Chapter8Main();
        People student=new Student();
        People teacher=new Teacher();
        chapter8Main.sayMyName(student);
        Chapter8Main.sayMyName1(teacher);
    }

    private void sayMyName(People people){
        people.sayMyName();
    }

    private static void sayMyName1(People people){
        people.sayMyName();
    }
}
